/// <reference path="../Scripts/jquery-1.7.1.min.js" />
/// <reference path="../Scripts/knockout-2.1.0.js" />

jQuery(document).ready(function () {
    var MyLogViewModel = new LogViewModel();
    ko.applyBindings(MyLogViewModel, document.getElementById('addLogNode'));
	ko.applyBindings(MyLogViewModel, document.getElementById('modifyLogNode'));
	ko.applyBindings(MyLogViewModel, document.getElementById('listLogNode'));
    jQuery("#newLogForm").validate();
    jQuery('input:submit').click(function () {
        if (jQuery("#newLogForm").valid())
        {
            MyLogViewModel.AddLog();

        }
        return false;
    });

    

    
});